{% extends "base.html" %}

{% block title %}
    天天生鲜
{% endblock %}

{% block style %}
    <style>
      .order_table{
          text-align: center;
      }
  </style>
{% endblock %}

{% block content %}
    <h1></h1>
      <!--商品列表-->
    <div class="row">
      <table class="table order_table">
          <thead>
            <tr>
                <th>订单编号</th>
                <th>订单商品</th>
                <th>发布时间</th>
                <th>订单价格</th>
                <th>商品数量</th>
                <th>订单价格</th>
                <th>订单操作</th>
            </tr>
          </thead>
          <tbody>
          {% for orders in orders_list %}
            <tr>
                <td>{{ orders.orders_id }}</td>
                <td>
                    <a href="#">{{ orders.orders_goods }}</a>
                </td>
                <td>{{ orders.orders_time }}</td>
                <td>{{ orders.orders_price }}</td>
                <td>{{ orders.orders_num }}</td>
                <td>{{ orders.orders_money }}</td>
                <td>
                    <button class="btn btn-primary">确认发货</button>
                    <button class="btn btn-danger">拒绝订单</button>
                </td>
            </tr>
          {% endfor %}
          </tbody>
      </table>
  </div>
    <h1></h1>
      <!--分页-->
    <div class="row">
        <ul class="pagination ml-auto">
            <li class="page-item">
                <a class="page-link">上一页</a>
            </li>
            <li class="page-item">
                <a class="page-link">1</a>
            </li>
            <li class="page-item">
                <a class="page-link">2</a>
            </li>
                                <li class="page-item">
                <a class="page-link">3</a>
            </li>
            <li class="page-item">
                <a class="page-link">4</a>
            </li>
            <li class="page-item">
                <a class="page-link">下一页</a>
            </li>
        </ul>
  </div>
{% endblock %}

